x=int(input())
y=int(input())
n=int(input())
from tkinter import *
root=Tk()
root.title('Марафон по програмированию 7И')
root.geometry('600x600')
canvas=Canvas(bg='white',width=500,height=500)
canvas.pack(anchor=CENTER,expand=1)

if n>=0:
    if (0*n+x)<0 or (0*n+y)<0 or (30*n+x)>500 or (20*n+y)>500 :
        print('Размер фигуры превышает максимальный размер')
    else:
        canvas.create_polygon(0*n+x,0*n+y,0*n+x,20*n+y,30*n+x,20*n+y,30*n+x,0*n+y,20*n+x,0*n+y,20*n+x,10*n+y,10*n+x,10*n+y,10*n+x,0*n+y,fill='red')
elif n<0:
    if (30*n+x)<0 or (0*n+y)<0 or (30*n+x)<0 or (0*n+y)<0:
        print('Размер фигуры превышает максимальный размер')
    else:
        canvas.create_polygon(0*n+x,0*n+y,0*n+x,20*n+y,30*n+x,20*n+y,30*n+x,0*n+y,20*n+x,0*n+y,20*n+x,10*n+y,10*n+x,10*n+y,10*n+x,0*n+y,fill='red')
root.mainloop()


    
